<?php
     include_once('includes/common.inc.php'); 
    include_once('includes/db.inc.php');
    include_once('dal/bookDAL.php');
   
    $book_id ='';
    if(isset($_GET['id']) && $_GET['id']!=''){
        $book_id = $_GET['id'];
    }else{
        header("location:index.php");
    }
  
    //khoi tao mang tham so
    $arr_args = array(
        'book_id' => $book_id
    );

    $obj=new BookDAL();;
    $arrData = $obj-> detail($arr_args);
    
    $_title =$arrData['book']['Name']; 
    
    include_once('views/home/header.php');
    include_once('views/home/detail.php');
    include_once('views/home/right_content.php');
    include_once('views/home/footer.php');

?>